import cookie from '../../utils/cookies'
import s from './index.module.scss'

const LoginPage = ({
  location,
  history,
}) => {
  const login = () => {
    cookie.setCookie('user-status', 'login')
    history.push({
      pathname: '/', 
      query: { source_page: 'loginPage'}
    })
  }
  return (
    <>
      <div className={s.container}>
        <button className={s.btn} onClick={login}>login</button>
      </div>
    </>
  )
}

export default LoginPage